package org.example.chenniyrpcspingbootstarter.annotation;

import org.example.chenniyrpcspingbootstarter.bootstrap.ConsumerBootStrap;
import org.example.chenniyrpcspingbootstarter.bootstrap.ProviderBootStrap;
import org.example.chenniyrpcspingbootstarter.bootstrap.RpcInitBootStrap;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE})//目标元素
@Retention(RetentionPolicy.RUNTIME)//目标环境
@Import({ConsumerBootStrap.class, ProviderBootStrap.class, RpcInitBootStrap.class})
public @interface EnableRpc {
    boolean needServer() default true;
}
